package com.design.decorator;
/**
 * 具体装饰角色
 * @Author:         cong zhi
 * @CreateDate:     2021/3/24 8:10
 * @UpdateUser:     cong zhi
 * @UpdateDate:     2021/3/24 8:10
 * @UpdateRemark:   修改内容
 * @Version:        1.0
 */
public class ConcreteDecorator extends Decorator{


    public ConcreteDecorator(Component component) {
        super(component);
    }

    @Override
    public void operation() {
        super.operation();
        addedFunction();
    }

    public void addedFunction(){
        System.out.println("为具体构件角色增加额外的功能addedFunction()");
    }
}
